package com.example.demo02.runner;

import com.example.demo02.form.TcPlatForm;
import com.example.demo02.service.TcPlatService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class Demo02Runner implements ApplicationRunner {
    @Resource
    TcPlatService tcPlatService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
//        TcPlatForm tcPlatForm = new TcPlatForm();
//        tcPlatForm.setActiontype("1");
//        tcPlatForm.setAccessName("测试账号9999");
//        tcPlatForm.setPlatName("测试平台1111");
//        tcPlatService.saveOrUpdateTcPlat(tcPlatForm);
    }
}
